package com.bruce.collection;

import com.google.common.collect.HashBiMap;
import com.google.common.collect.Lists;

import java.util.ArrayList;

/**
 * Created by bruce on 18/12/10 -- 15:43
 */
public class LambdaTest {
    public static void main(String[] args) {
        ArrayList<Integer> arrayList = Lists.newArrayList(1, 2, 3, 4, 5, 6);
        arrayList.forEach(item -> System.out.println(":value is :" + item));
        HashBiMap<String, String> hashBiMap = HashBiMap.create();
        hashBiMap.put("hello", "world");
        System.out.println(hashBiMap.inverse());
    }
}
